export default {
  state: {
    // 开启后才有密码
    noticeInfo: "", //青少年模式密码
  },

  mutations: {
    changeNoticeInfo(state, val) {
      state.noticeInfo = val;
      // console.log(val, "val");
    },
  },

  actions: {
    /**
     * 开启青少年模式
     * @param {String} password
     */
    async launch({ commit }, password) {
      commit("changePassword", password);
    },
  },
};
